package com.bjfu.intelligentrecognizeserver.Util;

import java.util.concurrent.ConcurrentHashMap;

public class SessionImageStore {
    private static final ConcurrentHashMap<String,String> userImageMap = new ConcurrentHashMap<>();

    public static void setImage(String userId, String imageBase64) {
        userImageMap.put(userId, imageBase64);
    }
    public static String getImage(String userId) {
        return userImageMap.get(userId);
    }

    public static void removeImage(String userId) {
        userImageMap.remove(userId);
    }
}
